package org.jeecg.modules.complain.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.complain.service.IComplainService;
import org.jeecg.modules.complain.vo.ComplainReport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * 投诉Api内部调用
 * @Author liurui
 * @Date 2019/10/07 13:39
 * @Version 1.0
 **/
@Slf4j
@Api(tags="complain Controller")
@RestController
@RequestMapping("/api/complain")
public class ComplainDataApiController {

    @Autowired
    @Lazy
    IComplainService complainService;

    @ApiOperation(value="getComplainReport", notes="getComplainReport")
    @PostMapping(value = "/getComplainReport")
    public ComplainReport getComplainReport(@RequestParam("projectId") String projectId){
        ComplainReport complainReport = complainService.getComplainReport(projectId);
        return complainReport;
    }
}
